import {createRouter, createWebHistory} from 'vue-router'
import Home from '../views/Home.vue'
import About from '../views/About.vue'
import Login from '../views/Login.vue'
import Register from '../views/Register.vue'
import loadMore_doctor_response from '../Jump-router-one/loadMore_doctor_response.vue'
import ask_doctor from '../Jump-router-one/ask-doctor.vue'
import disease_info from '../Jump-router-one/disease-info.vue'
import medicine_info from '../Jump-router-one/medicine-info.vue'
import hospital_info from '../Jump-router-one/hospital-info.vue'
import check_surgery_info from '../Jump-router-one/check-surgery-info.vue'
import vaccine_info from '../Jump-router-one/vaccine-info.vue'
import first_aid_info from '../Jump-router-one/first-aid-info.vue'
import self_assessment from '../Jump-router-one/self-assessment.vue'
import educational_videos from '../Jump-router-one/educational-videos.vue'
import empty_search from '../Jump-router-one/empty-search.vue'
import internal_medicine from '../Jump-router-two/internal-medicine.vue'
import dermatology from '../Jump-router-two/dermatology.vue'
import obstetrics_gynecology from '../Jump-router-two/obstetrics-gynecology.vue'
import ophthalmology from '../Jump-router-two/ophthalmology.vue'
import pediatrics from '../Jump-router-two/pediatrics.vue'
import surgery from '../Jump-router-two/surgery.vue'
import traditional_chinese_medicine from '../Jump-router-two/traditional-chinese-medicine.vue'
import otolaryngologies from '../Jump-router-two/otorhinolaryngology.vue'


const routes = [
    {
        path: '/',  //首页界面
        name: 'Home',
        component: Home
    },
    {
        path: '/about',  //关于界面
        name: 'About',
        component: About
    },
    {
        path: '/login',  //登录界面
        name: 'Login',
        component: Login
    },
    {
        path: '/register',  //注册界面
        name: 'Register',
        component: Register
    },
    {
        path: '/loadMore_doctor_response',  //加载更多医生回复
        name: 'loadMore_doctor_response',
        component: loadMore_doctor_response
    },
    {
        path: '/ask-doctor',  //问医生界面
        name: 'ask-doctor',
        component: ask_doctor
    },
    {
        path: '/disease-info',  //查疾病信息界面
        name: 'disease-info',
        component: disease_info
    },
    {
        path: '/medicine-info',  //查药品信息界面
        name: 'medicine-info',
        component: medicine_info
    },
    {
        path: '/hospital-info',  //查医院信息界面
        name: 'hospital-info',
        component: hospital_info
    },
    {
        path: '/check-surgery-info',  //检查手术信息界面
        name: 'check-surgery-info',
        component: check_surgery_info
    },
    {
        path: '/vaccine-info',  //疫苗信息界面
        name: 'vaccine-info',
        component: vaccine_info
    },
    {
        path: '/first-aid-info',  //急救信息界面
        name: 'first-aid-info',
        component: first_aid_info
    },
    {
        path: '/self-assessment',  //测一测界面
        name: 'self-assessment',
        component: self_assessment
    },
    {
        path: '/educational-videos',  //教育视频界面
        name: 'educational-videos',
        component: educational_videos
    },
    {
        path: '/empty-search',  //空搜索界面
        name: 'empty-search',
        component: empty_search
    },
    {
        path: '/internal-medicine',  //根据科室查医生界面
        name: '/internal-medicine',
        component: internal_medicine
    },
    {
        path: '/dermatology',  //皮肤科界面
        name: 'dermatology',
        component: dermatology
    },
    {
        path: '/obstetrics-gynecology',  //产科界面
        name: 'obstetrics-gynecology',
        component: obstetrics_gynecology
    },
    {
        path: '/ophthalmology',  //眼科界面
        name: 'ophthalmology',
        component: ophthalmology
    },
    {
        path: '/pediatrics',  //儿科界面
        name: 'pediatrics',
        component: pediatrics
    },
    {
        path: '/surgery',  //外科界面
        name: 'surgery',
        component: surgery
    },
    {
        path: '/traditional-chinese-medicine',  //传统Chinese medicine界面
        name: 'traditional-chinese-medicine',
        component: traditional_chinese_medicine
    },
    {
        path: '/otolaryngologies',  //耳鼻喉科界面
        name: 'otolaryngologies',
        component: otolaryngologies
    },
    {
        path: '/three-ask-doctor',  //三级界面医生界面
        name: 'three-ask-doctor',
        component: () => import('../Jump-router-three/ask_doctor.vue')
    }, {
        path: "/pay-ask-doctor",    //去支付界面
        name: "pay-ask-doctor",
        component: () => import("../Jump-router-three/pay-ask-doctor.vue")
    },
    {
        path: '/select-user-input', //选择用户输入界面
        name: 'select-user-input',
        component: () => import('../Jump-router-three/select-user-input.vue')
    },
    {
        path: '/add_patient',    //添加患者界面
        name: 'add_patient',
        component: () => import('../Jump-router-three/add_patient.vue')
    },
    {
        path:"/pay-all-datas",    //支付全部数据界面
        name:"pay-all-datas",
        component:()=>import("../Jump-router-three/pay-all-datas.vue")
    }

]
const router = createRouter({
    history: createWebHistory(),
    routes
})
export default router